package com.example.demo.exception;

/**
 * @Author: cafe zhai
 * @Date: 2024/01/22/10:25
 * @Description:
 */
public class ThrowableException extends RuntimeException {
    private String errCode;
    private String errMsg;
    private Throwable throwable;

    //(String msg, Throwable t)
    public ThrowableException(String errCode, String errMsg, Throwable throwable) {
        this.errCode = errCode;
        this.errMsg = errMsg;
        this.throwable = throwable;
    }

    public String getErrCode() {
        return errCode;
    }

    public Throwable getThrowable() {
        return throwable;
    }

    public void setErrCode(String errCode) {
        this.errCode = errCode;
    }

    public void setThrowable(Throwable throwable) {
        this.throwable = throwable;
    }

    public String getErrMsg() {
        return errMsg;
    }

    public void setErrMsg(String errMsg) {
        this.errMsg = errMsg;
    }
}
